import request from "@/utils/request";
import { analyseUrl } from "@/api/requestVaribles";

const measures = {
  // 体积量算
  getRegionVolume(params: any) {
    return request({
      url: `${analyseUrl}/env/geo/GisAnalysis3D/getRegionVolume`,
      method: "get",
      params: {
        ...params,
      },
    });
  },
  // 坡度坡向分析
  getSlopeInfoByPoints(params: any) {
    return request({
      url: `${analyseUrl}/env/geo/GisAnalysis3D/getSlopeInfoByPoints`,
      method: "get",
      params: {
        ...params,
      },
    });
  },
  // 点线通视分析
  pointLineVisible(data:any, params: any) {
    return request({
      url: `${analyseUrl}/env/geo/GisAnalysis3D/pointLineVisible`,
      method: "post",
      data: data,
      params: {
        ...params,
      },
    });
  },
  // 点线通视分析
  pointPolygonVisible(data:any, params: any) {
    return request({
      url: `${analyseUrl}/env/geo/GisAnalysis3D/pointPolygonVisible`,
      method: "post",
      data: data,
      params: {
        ...params,
      },
    });
  },
  // 淹没分析
  getTifTileByBounds(params: any) {
    return request({
      url: `${analyseUrl}/env/geo/geoTileAnalysis/getTifTileByBounds`,
      method: "get",
      params: {
        ...params,
      },
    });
  },
};

export default measures;
